package code.main
{
	import code.structure.module.friends.FriendsController;
	import code.structure.module.others.ProjectAssistController;
	import code.structure.module.scene.SceneController;
	import code.structure.module.signIn.SignInController;
	import code.structure.module.task.TaskController;
	import code.structure.module.test.TestController;
	import code.structure.module.user.UserController;
	
	/**
	 *程序 控制器本营 
	 * @author Yuri
	 * 
	 */
	public class AppControllerList
	{
		private static var _instance:AppControllerList;
		public function AppControllerList()
		{
			if(_instance) throw new Error("实例化单例类出错-AppControllerList");
		}
		
		public static function getInstance():AppControllerList{
			if(!_instance) _instance = new AppControllerList();
			return _instance;
		}
		
		/**
		 *模块启动 
		 * (要求 要保证先启动必须的先要模块 保证其数据能被其他模块需要的时候用到)
		 */
		public function start():void{
			
			if (AppData.isNew) {
			}
			userController.start();
			sceneController.start();
			friendsController.start();
			taskController.start();
			projectAssistController.start();
			signInController.start();
			//测试信息
			testController.start();
		}
		
		public var userController:UserController = new UserController();
		private var sceneController:SceneController = new SceneController();
		private var testController:TestController = new TestController();
		private var friendsController:FriendsController = new FriendsController();
		private var taskController:TaskController = new TaskController();
		private var signInController:SignInController = new SignInController();
		private var projectAssistController:ProjectAssistController = new ProjectAssistController();
	}
}